<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>上传图片 - 阿里芝麻网络相册</title>
<link rel="stylesheet" type="text/css" href="css/common.css" />
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/reply.js"></script>
<script type="text/javascript">
function addFile() {
	var fileNo=Number(document.getElementById('fileCount').value);
	if(fileNo<20)
	{
		fileNo++;
		newDiv=document.createElement("div")
		newDiv.id="divFile"+fileNo;
		document.getElementById('uploadDiv').appendChild(newDiv)
		document.getElementById('fileCount').value=fileNo;
		newDiv.innerHTML="<input type='file' name='file"+fileNo+"'>";
	}
}
</script>
<link href="css/default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">#parse("navigation.html")
#parse("myneck.html")
<div id="content2">
<div class="centerform">
<h2>上传图片</h2>
<form method="post" action="uploadImage.html"
	enctype="multipart/form-data"><input type="hidden"
	id="fileCount" name="fileCount" value="1" />
<div id="uploadDiv"><input type="file" name="file1" /></div>
请选择相册<br />
<select name="albumId">
	#foreach($album in $albumList)
	<option value="$!{album.id}" #if($!{albumId}==$!{album.id})
		selected="selected" #end>$!{album.title}</option>
	#end
</select><span class="error">$!{error_uploadImage}</span>
<p><input type="button" value="继续上传" onClick="javascript:addFile()" />
<input type="submit" value="提交" /></p>
</form>
</div>
</div>
<!-- end content --> #parse("footer.html")</div>
</body>
</html>
